Ask_Message AbortYN 0 '~m(1,1,1,1)~w(35)~hCDPMenu is about to install Aladdin, the communcations program for GEnie. If you would like to abort the installation Please select No Now.~n~n~kContinue installation?~n~k~i(1)~e &Yes ~e ~d(2)~e &No ~e'
If '@Num(AbortYN) = 2' then Abortexit
;
; Step 1 Get the target directory for the installation
;
Ask_Value Target 122 C:\Aladdin '~m(1,1,1,1)~hInstallation Directory~nWhat directory should CDPMenu Install Aladdin to?~nHit enter to accept the default.~n~n~k~I(1)Directory: ~e ~e'
;
; Step 2 Check the directry and if not present create it.
;
Define_Var Target @AddBacks(Target)
If @IsDir(Target) then DirCreated
MD target
;
:DirCreated
;
; Step 3 Define a logical for target called target to copy the files to
;
Define_log Target target
;
; Step 4 Copy all the Data files from the CDROM directory to the target directory.
;
Copy Aladdin:*.* Target:*.*
;
Ask_Message CopyProg 0 '~m(1,1,1,1)~w(45)~hInstallation Complete~nAladdin Ready, Review the documentation, Change to the Aladdin Directory and type Aladdin to start.~n~n~k~I(1)~eO&k~e'